package cn.zhou.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Description:
 * @Author: zhou
 * @Date: Create in 14:45 2020/7/20
 */
@Configuration
public class ApplicationConfig {
    @Bean
    //负载均衡
    //@LoadBalanced  测试自己编写的算法
    public RestTemplate getRestTemplate(){
        return new RestTemplate();
    }
}
